package cn.yj.quartz;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 永健
 * @since 2022-01-14 16:46
 */
public class QuartzJob implements Serializable {

    /**
     * jobID
     */
    private Long jobId;

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 分组
     */
    private String jobGroup;


    private String remark;

    /**
     * 要执行的类名和方法
     */
    private String invokeTarget;

    private String cronExpression;

    /**
     * 执行策略
     */
    private String misfirePolicy;

    /**
     * 是否并发执行
     */
    private Boolean concurrent;

    /**
     * 任务状态
     */
    private String status;

    private Date createTime;

    private Date updateTime;


    public Long getJobId() {
        return jobId;
    }

    public QuartzJob setJobId(Long jobId) {
        this.jobId = jobId;
        return this;
    }

    public String getJobName() {
        return jobName;
    }

    public QuartzJob setJobName(String jobName) {
        this.jobName = jobName;
        return this;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public QuartzJob setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
        return this;
    }

    public String getInvokeTarget() {
        return invokeTarget;
    }

    public QuartzJob setInvokeTarget(String invokeTarget) {
        this.invokeTarget = invokeTarget;
        return this;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public QuartzJob setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
        return this;
    }

    public String getMisfirePolicy() {
        return misfirePolicy;
    }

    public QuartzJob setMisfirePolicy(String misfirePolicy) {
        this.misfirePolicy = misfirePolicy;
        return this;
    }

    public Boolean getConcurrent() {
        return concurrent;
    }

    public QuartzJob setConcurrent(Boolean concurrent) {
        this.concurrent = concurrent;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public QuartzJob setStatus(String status) {
        this.status = status;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public QuartzJob setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public QuartzJob setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public QuartzJob setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}
